package com.letoken.platform.repo.wallet.req;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import software.amazon.ion.Decimal;

import javax.validation.constraints.NotBlank;
import java.math.BigDecimal;

/**
 * @author letokenlabs
 * @date 2022/11/16$
 */
@Data
@ApiModel(value = "资金归集任务请求对象", description = "资金归集任务请求对象")
public class CollectionTaskReq {

    @ApiModelProperty(name = "chain", value = "所属公链名称", required = true, example = "bsc/eth")
    @NotBlank(message = "80201001")
    private String chain;

    @ApiModelProperty(name = "userId", value = "userId", required = true, example = "1201")
    @NotBlank(message = "80201001")
    private Integer userId;

    @ApiModelProperty(name = "addressId", value = "钱包ID", required = true, example = "111")
    @NotBlank(message = "80201001")
    private Integer addressId;

    @ApiModelProperty(name = "tokenId", value = "代币ID", required = false, example = "1")
    @NotBlank(message = "80201001")
    private Integer tokenId;

    @ApiModelProperty(name = "amount", value = "金额数量", required = false, example = "1000")
    @NotBlank(message = "80201001")
    private BigDecimal amount;
}
